int fact(int n)
{
    int s=1;
    int i;
    for(i=2;i<=n;i++)
        s*=i;
    return s;
}

int main()
{
    printf("%d\n",fact(7));
    printf("%d\n",fact(7));
}
